package com.control.qct.businesssteward.base;

import java.io.Serializable;

/**
 * Created by Administrator on 2018/1/30 0030.
 */

public class BaseBean<T> implements Serializable{

    /**
     * successed : true
     * code : string
     * message : string
     * data : {}
     * errorData : {}
     * descript : string
     */

    private boolean successed;
    private String code;
    private String message;
    private T data;
    private T errorData;
    private String descript;

    public boolean isSuccessed() {
        return successed;
    }

    public void setSuccessed(boolean successed) {
        this.successed = successed;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public T getErrorData() {
        return errorData;
    }

    public void setErrorData(T errorData) {
        this.errorData = errorData;
    }

    public String getDescript() {
        return descript;
    }

    public void setDescript(String descript) {
        this.descript = descript;
    }

    @Override
    public String toString() {
        return "BaseBean{" +
                "successed=" + successed +
                ", code='" + code + '\'' +
                ", message='" + message + '\'' +
                ", data=" + data +
                ", errorData=" + errorData +
                ", descript='" + descript + '\'' +
                '}';
    }
}
